import turtle as t
import random
t.pensize(10)
t.speed(9)

colors = ["red", "blue", "green", "yellow", "black", "pink"]
for i in range(8):
    t.color(colors[random.randint(0, len(colors) - 1)])
    t.fd(300)
    t.right(135)
t.done()